package com.linxb.client.config;

import feign.Retryer;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @Author: linxubin
 * @Description:
 * @Date: Created in 2018-06-30 19:08
 * @modified by:
 **/
@Configuration
public class FeignConfig {
    public Retryer feignRetryer (){
        return new Retryer.Default(1, TimeUnit.SECONDS.toMinutes(1),5);
    }
}
